package com.itheima.principles.demo5;

/**
 * 经纪人类
 */
public class Agent {

    private Star star;  // 明星
    private Fans fans;  // 粉丝
    private Company company;    // 媒体公司

    // 和粉丝见面
    public void meeting() {
        System.out.println(star.getName() + "和粉丝" + fans.getName() + "见面");
    }

    // 和媒体公司洽谈
    public void business() {
        System.out.println(star.getName() + "和" + company.getName() + "公司洽谈");
    }

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }
}
